package com.jsoft.service.impl;

import com.jsoft.dao.EnterpriseDao;
import com.jsoft.dao.impl.EnterpriseDaoImpl;
import com.jsoft.entity.Enterprise;
import com.jsoft.service.EnterpriseService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author:sha
 * @email:o68o4741@163.com
 * @date:2023/2/20
 */
public class EnterpriseServiceImpl implements EnterpriseService {
    EnterpriseDao enterpriseDao = new EnterpriseDaoImpl();
    @Override
    public List<Enterprise> listOtherEnterpriseName(Integer id) throws Exception {
        return enterpriseDao.listEnterpriseNames(id);
    }

    @Override
    public String getName(Integer id) throws Exception {
        return enterpriseDao.getEnterpriseName(id);
    }

    @Override
    public String getSocialUniformCode(String name) throws Exception {
        return enterpriseDao.getSocialUniformCode(name);
    }

    @Override
    public Integer getEnterpriseId(String name) throws Exception {
        return enterpriseDao.getEnterpriseId(name);
    }
}
